public class 比较长方形的面积 {
    public static void main(String[] args) {
        double area1 = getArea(5.3, 1.7);
        double area2 = getArea(2.4, 1.7);
        if (area1 > area2) {
            System.out.println("第一个长方形更大");
        } else {
            System.out.println("第二个长方形更大");
        }
    }

    public static double getArea(double len, double width) {
        double area = len * width;
        return area;
    }
}
